projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7a9dc
)
GtkImage: Plug a memory leak
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jul 2015 03:04:30 +0000
(23:04 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jul 2015 03:04:30 +0000
(23:04 -0400)
gtk/gtkimage.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimage.c
b/gtk/gtkimage.c
index 032100d29b08f48d8fd754404ca7b9bef9107d79..2aa1e69f5e9f6df93b83c6ca8e576922b018095d 100644
(file)
--- a/
gtk/gtkimage.c
+++ b/
gtk/gtkimage.c
@@
-407,8
+407,6
@@
gtk_image_init (GtkImage *image)
gtk_widget_set_has_window (GTK_WIDGET (image), FALSE);
priv->icon_helper = _gtk_icon_helper_new ();
_gtk_icon_helper_set_icon_size (priv->icon_helper, DEFAULT_ICON_SIZE);
-
- priv->filename = NULL;
}
static void
@@
-419,6
+417,7
@@
gtk_image_finalize (GObject *object)
g_clear_object (&image->priv->icon_helper);
g_free (image->priv->filename);
+ g_free (image->priv->resource_path);
G_OBJECT_CLASS (gtk_image_parent_class)->finalize (object);
};